import Vue from 'vue'
import Vuex from 'vuex'

// 导入子模块
import userModule from "./modules/user"

// 导入插件
import createState from 'vuex-persistedstate'
Vue.use(Vuex)

export default new Vuex.Store({
  plugins: [createState()],
  modules: {
    user: userModule
  },
})
